package com.pycredit.bean;

import java.io.Serializable;

import com.pycredit.type.ServiceType;
import com.pycredit.util.MathUtil;

/**
 * @category 各服务支出用户项目支出
 * 
 * @author yiz
 * @date 2016年5月25日 上午10:11:13
 * @version 1.0.0 
 * @copyright pycredit.cn 
 */
public class ServiceTypeSpecialCostParam implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8056844817019358506L;

	/**
	 * @category 服务类型
	 */
	private ServiceType serviceType;
	/**
	 * @category 软硬件费用
	 */
	private double softHardCost;

	/**
	 * @category 调研费用
	 */
	private double investigationCost;

	/**
	 * @category 宣传费用
	 */
	private double propagandaCost;

	/**
	 * @category 通讯费用
	 */
	private double communicationCost;

	/**
	 * @category 其他费用
	 */
	private double otherCost;

	public double getSoftHardCost() {
		return softHardCost;
	}

	public void setSoftHardCost(double softHardCost) {
		this.softHardCost = softHardCost;
	}

	public double getInvestigationCost() {
		return investigationCost;
	}

	public void setInvestigationCost(double investigationCost) {
		this.investigationCost = investigationCost;
	}

	public double getPropagandaCost() {
		return propagandaCost;
	}

	public void setPropagandaCost(double propagandaCost) {
		this.propagandaCost = propagandaCost;
	}

	public double getCommunicationCost() {
		return communicationCost;
	}

	public void setCommunicationCost(double communicationCost) {
		this.communicationCost = communicationCost;
	}

	public double getOtherCost() {
		return otherCost;
	}

	public void setOtherCost(double otherCost) {
		this.otherCost = otherCost;
	}

	public ServiceType getServiceType() {
		return serviceType;
	}

	public void setServiceType(ServiceType serviceType) {
		this.serviceType = serviceType;
	}

	/**
	 * @category 求总和
	 * @return
	 */
	public double getTotleCost() {
		return MathUtil.add(communicationCost, investigationCost, otherCost, propagandaCost, softHardCost);
	}

}
